<?php
return [
    'server_type' => 'coroutine', // 可选: async, coroutine
    'host' => '0.0.0.0',
    'port' => 5678,

    // 异步服务器配置
    'async' => [
        'worker_num' => 4,
        'max_request' => 10000,
        "daemonize" => 0,                             //打开调试模式
        'dispatch_mode' => 5,
        'task_worker_num' => 1,
        'task_max_request' => 100000,
        'heartbeat_check_interval' => 15,
        'heartbeat_idle_time' => 60,
    ],

    // 协程服务器配置
    'coroutine' => [
        'max_coroutine' => 100000,
        'enable_preemptive_scheduler' => true
    ],
];